package com.ruoyi.business.appuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.appuser.entity.Device;
import com.ruoyi.business.appuser.vo.DeviceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author Tellsea
 * @date 2025-05-22
 */
@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    Page<DeviceVo> queryList(Page<?> page, @Param("entity") DeviceVo entity);

    List<DeviceVo> queryList(@Param("entity") DeviceVo entity);

    DeviceVo queryById(@Param("id") Long deviceId);

    void updateStatus(Device device);
}
